﻿@{
    ViewBag.Title = "出口计划服务评价";
}

@section PSI_JS {
    <script src="@Url.Content("~/Scripts/PSI/App.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="~/Scripts/PSI/OutPlan/EvaluateService.js"></script>

    <script src="@Url.Content("~/Scripts/PSI/BaseCode/LookupEditor.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/DispatcherField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/CntTypeField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/AddressField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/Truck/TruckCompanyField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/Truck/TruckNumberField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="~/Scripts/PSI/OutPlan/TraceComments.js"></script>
    <script src="@Url.Content("~/Scripts/PSI/OutPlan/MainForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
}

<script type="text/javascript">
    Ext.onReady(function () {
        var app = Ext.create("PSI.App", {
            userName: "@ViewBag.UserName"
        });

        app.createMainUI();

        var mp = app.getMainPanel();

        var mainForm = Ext.create("PSI.OutPlan.EvaluateService");
        @*var qc = {
            billNumber: "@ViewBag.ConsignationBillNumber",
            planNumber: "@ViewBag.PlanNumber"
        };

        mainForm.setQC(qc);*@
        mainForm.createUI();

        mp.add(mainForm.getMainPanel());
    });
</script>